package cn.pn.project.controller;

import cn.pn.project.client.schedule.TicketFileFeign;
import cn.pn.project.pojo.schedule.Ticketfile;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.sql.SQLException;
import java.util.List;

@RestController
//方法暂时不用，应该由泽强提供接口
@RequestMapping("/schedule/ticket")
public class TicketController {
    @Autowired
    private TicketFileFeign ticketFileFeign;




    @RequestMapping(value = "/getTickFileByPlaceId", method = RequestMethod.GET)
    public List<Ticketfile> getTickFileByPlaceId(@RequestParam("placeId") Integer placeId)throws SQLException{
        return  ticketFileFeign.getTickFileByPlaceId(placeId);
    }
}
